﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DynaSpace.Entity;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;

namespace DynaSpace.SampleEntity
{
	class BallEntity : UpdatableEntity, IRendeable
	{
		public BallEntity(Playground p, Vector2 pos)
			: base(p, pos)
		{
			this.Engine = new CollisionEngine();
		}

		#region IRendeable Members

		public void Render(Microsoft.Xna.Framework.Vector2 rel, Microsoft.Xna.Framework.Graphics.SpriteBatch sb)
		{
			sb.Draw(SampleEntityComponent.texBall, (Position - rel) * SIZE, Color.White);
		}

		#endregion
	}
}
